'use strict'

const { ipcRenderer } = require('electron')

document.getElementById('login-user').addEventListener('submit', (evt) => {

  evt.preventDefault()
  const input = evt.target[0].value
  ipcRenderer.send('password-accepted', input);

});

ipcRenderer.on('password-message', (event, message) => {
  const pwd_message = document.getElementById('lbl')
  pwd_message.innerHTML = message

  }, '')
